﻿using Tss.MagicWeb.Domain.Entities;

namespace Tss.MagicWeb.Domain.Infrastructure.Auth
{
    public class SecurityContext : ISecurityContext
    {
        private readonly User user;
        private PermissionTypes permission;

        public User User
        {
            get { return user; }
        }

        public PermissionTypes Permissions
        {
            get { return permission; }
            set { permission = value; }
        }

        public SecurityContext(User user, PermissionTypes permissionType)
        {
            this.user = user;
            this.permission = permissionType;
        }
    }
}
